package com.yfp.client.mapper;

import com.yfp.client.domain.MarActivity;
import com.yfp.client.domain.MarActivityPosition;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author admin
* @description 针对表【mar_activity_position(邀请活动+点位关系表)】的数据库操作Mapper
* @createDate 2025-01-17 19:15:55
* @Entity com.yfp.client.domain.MarActivityPosition
*/
public interface MarActivityPositionMapper extends BaseMapper<MarActivityPosition> {

    /**
     * 根据点位id和活动标签获取活动
     * @param positionId
     * @param label
     * @return
     */
    MarActivity getByPositionIdAndLabel(@Param("positionId") String positionId, @Param("label") Integer label);

    /**
     * 查询全部点位的活动
     * @param label
     * @return
     */
    MarActivity getAllPositionIdAndLabel(@Param("status") Integer status, @Param("label") Integer label, @Param("cityName") String cityName);
}




